package com.example.springbootdemo.demo.pojo;

public class Man extends Person {

    private String sex;

    @Override
    public String toString() {
        String string = super.toString();
        return string + " >>> " + "Man{" +
                "sex='" + sex + '\'' +
                '}';
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

}
